package com.eascs.tdriskcloud.dao;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.eascs.admin.common.dao.BaseO2oDao;

@Repository
public class TDRiskCloudDao extends BaseO2oDao {
	
	@Transactional(transactionManager = "o2oTransactionManager")
	public <T> int saveEntity(T entity){
		return this.insert(entity);
	}
	
	public String getSeqIdById(String Id){
		String querySql = "SELECT t.seq_id FROM td_personal_data_info t WHERE t.id = ?";
		return this.findString(querySql, Id);
	}
}
